# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=libupnpp
pkgver=0.24.0
pkgrel=0
pkgdesc="C++ wrapper for libupnp"
url="https://framagit.org/medoc92/libupnpp"
arch="all"
license="LGPL-2.0-or-later"
options="!check"
makedepends="curl-dev expat-dev libnpupnp-dev"
subpackages="$pkgname-dev"
source="libupnpp-$pkgver.tar.gz::https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
ede03debf9a4bc1b35e2da00aa7bfae88ffd03d7c6878342c9ac8d0a62f3cbe7abec0bbd4eb5de23d0477dd449690349a629f00ac9100ceb084844a6063b46ae  libupnpp-0.24.0.tar.gz
"
